const API = require('./src/utils/API')
module.exports = {
	publicPath:'./',
	 outputDir:'mydist',
	  assetsDir:'static',
	  
	pluginOptions: {
		'style-resources-loader': {
			preProcessor: 'less',
			patterns: []
		}
	},
	  css: {
	        loaderOptions: {
	            postcss: {
	                plugins: [
	                    require('postcss-px2rem')({remUnit: 37.5}), // 换算的基数
	                ]
	            }
	        }
	    },
devServer: {
	https: false,
	open: false,
    proxy: {
		[API.DEV_AGENT]:{
      // '/mall': {
    target: API.BASE_URL, //'http://116.63.80.218:8082/wx/',
        ws: true,
        changeOrigin: true,
		  pathRewrite: {
		    // '^/mall': '' 
			['^'+API.DEV_AGENT]: ''
		    
		  },
      },
    
    }
  }


}
